# base image
FROM index.mindcoder.cn/docker/centos/jre

# MAINTAINER
LABEL Author="yanjingtu<yanjingtu2008@yeah.net>"

# add maven files
ADD files/maven/settings.xml /settings.xml
ADD files/maven/mvn /usr/bin/mvn

# add file
ADD scripts /scripts

# run command
RUN chmod +x /scripts/*.sh && cd /scripts && ./install-maven.sh && rm -rf /scripts

# volumes
VOLUME ["/mnt"]

# main command
CMD ["/bin/bash"]

